package com.edu.flink.table;

import java.io.Serializable;

/**
 * <p>
 * 订单表实体类
 * </p>
 *
 * @author jpge
 * @since 2024-04-22
 */
public class Order implements Serializable {

    private static final long serialVersionUID = -4533292833507050508L;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 产品名称
     */
    private String product;

    /**
     * 金额
     */
    private int amount;

    public Order() {
    }

    public Order(Long userId, String product, int amount) {
        this.userId = userId;
        this.product = product;
        this.amount = amount;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getProduct() {
        return product;
    }

    public void setProduct(String product) {
        this.product = product;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    @Override
    public String toString() {
        return "Order{" +
                "userId=" + userId +
                ", product='" + product + '\'' +
                ", amount=" + amount +
                '}';
    }
}